<?php

use yii\helpers\Html;
use yii\widgets\DetailView;
use frontend\components\HotWordsWidget;
use frontend\components\RctCreditdetailWidget;
use frontend\components\RctDocWidget;
use frontend\components\HotDocWidget;
use yii\grid\GridView;

/* @var $this yii\web\View */
/* @var $model common\models\User */

$this->title = $model->username ;
$this->params['breadcrumbs'][] = ['label' => '用户中心', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="user-view">
 <div class="row">

    <h1><?= Html::encode($this->title) ?></h1>

    <p>

        <?= Html::a('修改资料', ['update', 'id' => $model->uid], [
            'class' => 'btn btn-danger',
            'data' => [
                'confirm' => 'Are you sure you want to delete this item?',
                'method' => 'post',
            ],
        ]) ?>
    </p>

    <?= DetailView::widget([
        'model' => $model,
        'attributes' => [
            'uid',
            'username',
            // 'password_hash',
            'email:email',
            'credit',
            // 'groupid',
			 ['attribute'=>'groupid',
        	'label'=>'分组',
        	'value'=>'group.grouptitle',
    		],			
            'createnum',
            'editnum',
        ],
    ]) ?>

  </div>

</div>
